package com.boarsoft.boar.demo.tenant.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.boarsoft.boar.demo.tenant.biz.PocPostBiz;
import com.boarsoft.boar.demo.tenant.entity.PocPost;
import com.boarsoft.dao.sharding.bean.DaoSharding;

@Service
public class PocPostAddImpl implements PocPostAdd {

	@Autowired
	private PocPostBiz postBiz;

	@Override
	@DaoSharding(policy = "default", index = 0)
	public boolean add(String tenantId, PocPost p) {
		return postBiz.add(p);
	}

}